package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {

    PageInfo query(QueryObject qo);

    List<StrategyComment> selectCommentsByStrategyId(Long strategyId);

    void saveComment(StrategyComment comment);

    StrategyComment selectStrategyCommentById(Long id);

    int queryIfexist(Long strategyCommentId, Long userId);

    void saveLike(Long userId, Long strategyCommentId);

    void deleteLike(Long userId, Long strategyCommentId);

    int queryLikeCount(Long strategyCommentId);

    PageInfo queryForLikeMe(TravelQueryObject qo);
}
